package com.dg.cuckoo.admin.action.compilation.expertise;

import com.dg.cuckoo.admin.service.WaterProfitService;
import com.dg.cuckoo.common.utils.PageModel;
import com.dg.cuckoo.core.BaseController;
import com.dg.cuckoo.core.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 制度汇编-专业技术-水利
 */
@RestController
@RequestMapping("/compilation/expertise/waterProfit")
public class WaterProfit extends BaseController {

    @Autowired
    private WaterProfitService service;

    /**
     * 分页
     */
    @PostMapping("page/{page}/{pageSize}")
    public JsonResult<PageModel> page(@PathVariable Integer page, @PathVariable Integer pageSize){
        PageModel data = service.page(page, pageSize);
        return new JsonResult<>(OK,data);
    }

}
